//
//  AKUIToolKit.m
//  AKPZ
//
//  Created by Lexi on 16-3-14.
//  Copyright (c) 2016年 aikangpeizhen. All rights reserved.
//

#import "AKUIToolKit.h"
#import "TopLoadingView.h"
#import "AppDelegate.h"
#import "MBProgressHUD.h"
#import "TKAlertCenter.h"

@implementation AKUIToolKit

+ (void)alertMessage:(NSString *)message {
    if (message.length <= 0) {
        return;
    }
    [[TKAlertCenter defaultCenter] postAlertWithMessage:message];
}

+ (void)showLoadingInView:(UIView *)view withTitle:(NSString *)title {
    [TopLoadingView showInView:view title:title delegate:nil obscure:YES useClose:NO];
}

+ (void)showCouldCancelLoadingInView:(UIView *)view withTitle:(NSString *)title delegate:(id)delegate {
    [TopLoadingView showInView:view title:title delegate:delegate obscure:YES useClose:YES];
}

//移除加载消息
+ (void)hideLoadingMessageInView:(UIView *)view {
    [TopLoadingView hide];
}

@end
